#ifndef PROFILERMANAGER_H
#define PROFILERMANAGER_H

#include "iplugin.h"

class Profiler;

class ProfilerManager : public QWidget
	, public I_PlugIn
{
	Q_OBJECT
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
    Q_PLUGIN_METADATA(IID "iplugin" FILE "ProfilerManager.json")
#endif
	Q_INTERFACES(I_PlugIn)

public:
	explicit ProfilerManager(QWidget *parent = 0);
	~ProfilerManager();

public:
	virtual void initialize();
	virtual QString getName();
	virtual QWidget* getUi();

private Q_SLOTS:
	void cellChanged(int row, int column);

private:
	bool loadProfiler();

private:
	QString name;
	Profiler* profiler;
	QTableWidget* tableWidget;
};

#endif // PROFILERMANAGER_H
